package example.service;

import example.dao.AdminUserMapper;
import example.model.AdminUser;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * Created by snksnk1091 on 2017/7/30.
 */
@Service
public class TextService {
    @Autowired
    AdminUserMapper adminUserMapper;

    public void test(){
        AdminUser adminUser = new AdminUser();
        adminUser.setUserName("haha");
        adminUser.setPassword("23333");
        adminUser.setPower("1");
        adminUser.setIsDelete(false);
        adminUser.setCreatDate(new Date());
        adminUser.setUpdateDate(new Date());
        adminUserMapper.insertSelective(adminUser);
    }
}
